package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.rest.entity.RestDict;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPaymentOrderConfigMugua;
import cn.stylefeng.guns.sys.modular.system.entity.BtyPaymentOrderDetails;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPaymentOrderAndYybbParam;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyPaymentOrderDetailsParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderAndYybbResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderDetailsResult;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyPaymentOrderDetailsSimpleResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 店名日营业现金支付订单表 Mapper 接口
 * </p>
 *
 * @author wjk
 * @since 2021-12-07
 */
public interface BtyPaymentOrderDetailsMapper extends BaseMapper<BtyPaymentOrderDetails> {

    /**
     * 获取列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    List<BtyPaymentOrderDetailsResult> customList(@Param("paramCondition") BtyPaymentOrderDetailsParam paramCondition);

    /**
     * 获取map列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyPaymentOrderDetailsParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    Page<BtyPaymentOrderDetailsResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyPaymentOrderDetailsParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author wjk
     * @Date 2021-12-07
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyPaymentOrderDetailsParam paramCondition);


    /**
     * 获取分页查询支付的一些列表
     *
     * @author wjk
     * @Date 2021-12-08
     */
    Page<BtyPaymentOrderAndYybbResult> searchPayPageList(@Param("page") Page page, @Param("paramCondition") BtyPaymentOrderAndYybbParam paramCondition,@Param("paidCashStartDate") String paidCashStartDate,@Param("xjbzStartDate") String xjbzStartDate);

    /**
     * 获取查询支付的列表，导出查询
     *
     * @author wjk
     * @Date 2021-12-14
     */
    List<BtyPaymentOrderAndYybbResult> searchPayList( @Param("paramCondition") BtyPaymentOrderAndYybbParam paramCondition,@Param("paidCashStartDate") String paidCashStartDate,@Param("xjbzStartDate") String xjbzStartDate);

    /**
     * 查询支付日
     * @return
     */
    List<RestDict> getSysDictPaidCashStartDateDay();

    /**
     * 查询支付日
     * @return
     */
    List<RestDict> getSysDictXjbzStartDateDay();

    /**
     * 查询根据订单编号查询列表
     *
     * @author wjk
     * @Date 2021-12-09
     */
    Page<BtyPaymentOrderDetailsSimpleResult> listByPayCode(@Param("page") Page pageContext, @Param("paramCondition") BtyPaymentOrderDetailsParam btyPaymentOrderDetailsParam, @Param("paidCashStartDate") String paidCashStartDate);

    /**
     * 根据营业报表的id 查询日营业报表数据
     * @return
     */
    List<BtyPaymentOrderAndYybbResult> getYybbListById( @Param("paramCondition") BtyPaymentOrderDetailsParam btyPaymentOrderDetailsParam,@Param("xjbzStartDate") String xjbzStartDate);

    /*
    *查询门店妖码和店名
     */
    List<BtyPaymentOrderAndYybbResult> searchMenDianList(@Param("paramCondition") BtyPaymentOrderAndYybbParam btyPaymentOrderAndYybbParam,@Param("paidCashStartDate")  String paidCashStartDate,@Param("xjbzStartDate")  String xjbzStartDate);

    /**
     *
     * @param pageContext
     * @param list
     * @return
     */
    Page<BtyPaymentOrderAndYybbResult> searchDZList(@Param("page") Page pageContext, @Param("list") List<BtyPaymentOrderAndYybbResult> list);

    List<BtyPaymentOrderAndYybbResult> searchDZList(@Param("list") List<BtyPaymentOrderAndYybbResult> list);

    /**
     *
     *
     * 查询随行付账号分组
     * @author wjk
     * @Date 2022-07-04
     */
    List<BtyPaymentOrderConfigMugua> getSuixingfuShopNumList();
}
